<div class="container"> 
<!-- middle -->
<div id="middle" class="full_width">
	
    <div class="content" role="main">
    
    	<article class="post-detail">            
			<div class="entry">
            
            <!-- 2 cols layout -->
            <div class="col col_1_2">
            	<div class="inner">
                
				<!-- grid layout, 2 cols -->
				<div class="posts_layout grid_layout grid_cols2">
					<?php if($head):?>
					<div class="post-item title-over">	                    		                        	
						<div class="post-image">
							<a href="post-details.html"><img src="<?=base_url().postImage($head['post_image'])?>" width="460" height="258" alt=""></a>
							<div class="post-cat"><span>Headline</span></div>
							<div class="score_box"><?=$head['post_day']?><span><?=substr($head['post_month'],0,3)?></span></div>
						</div>
						<div class="post-title">				            	
							<h2><a href="<?=postUrl($head['post_date'],$head['post_id'],$head['post_title'])?>"><?=$head['post_title']?></a></h2>                        
						</div>	  
                        
                        <?php if(is_superUser()):?>
						<?php if($this->session->userdata('user_login')== $head['EmployeeID']): ?>	
						<div class="post-meta">
							<a onclick="return confirm('Are you sure you want to Update this Post !')" href="<?=site_url('post/edit/'.$head['post_id'])?>" class="author">Update This News</a> <span class="separator">|</span>
							<a onclick="return confirm('Are you sure you want to Remove this Post !')" href="<?=site_url('post/remove/'.$head['post_id'])?>" class="author">Remove This News</a> <span class="separator">|</span>
							<!--<a href="#">31 Comments</a></div>-->
						</div>
						<?php endif;?>
                        <?php endif;?>
						
						<div class="post-descr" style="margin-top:10px;">
							<?=word_limiter($head['post_content'],50)?>
						</div>
						<div class="clear"></div>
					</div>
					
				<div class="clear"></div>
				<?php endif;?>	
				</div>
				<!--/ grid layout, 2 cols -->
				
                </div>
            </div>
            
            <div class="col col_1_2">
            	<div class="inner">
            		
                    <!-- box with posts -->
                    <div class="post_box">
						
						<?php foreach($info as $row):?>
                    	<div class="post-item">	                    		                        	
	                        <div class="post-title">				            	
				            	<h2><a href="<?=site_url('post/read/'.$row['post_year'].'/'.$row['post_month_'].'/'.$row['post_day'].'/'.$row['post_id'].'/'.seoUrl($row['post_title']))?>"><?=$row['post_title']?></a></h2>
                                <div class="post-cat"><span><?='INFO '.$row['post_day'].' '.substr($row['post_month'],0,3)?></span></div>
				            </div>	                        
	                        
                            <?php if(is_superUser()):?>  
							<?php if($this->session->userdata('user_login')== $row['EmployeeID']): ?>	
							<div class="post-meta">
								<a onclick="return confirm('Are you sure you want to Update this Post !')" href="<?=site_url('post/edit/'.$row['post_id'])?>" class="author">Update This News</a> <span class="separator">|</span>
								<a onclick="return confirm('Are you sure you want to Remove this Post !')" href="<?=site_url('post/remove/'.$row['post_id'])?>" class="author">Remove This News</a> <span class="separator">|</span>
							</div>
                            <?php endif ?>
							<?php endif ?>
							
	                        <div class="post-descr">
	                        	<?=word_limiter($row['post_content'],25)?>
	                        </div>
	                    </div>
						<?php endforeach;?>
                        
                        
                    </div>
                    <!--/ box with posts -->
                    
                </div>
            </div>
            <!--/ 2 cols layout -->
            
            <div class="divider"></div>
         
            <!-- 2 cols layout, 2/3+1/3-->
            <div class="col col_2_3">
	            <div class="inner">
                	
                    <div class="posts_layout list_layout image_small">
					
						<?php foreach($news as $row):?>
	            	  	<div class="post-item image_left">	                    		                        	
		                	<div class="post-image">
		                    	<a href="post-details.html"><img src="<?=base_url().postImage($row['post_image'])?>" width="219" height="140" alt=""></a>
	                   	  	  	<div class="post-cat"><span><?=$row['user_name']?></span></div>
		                        <div class="score_box"><?=$row['post_day']?><span><?=substr($row['post_month'],0,3)?></span></div>
		                  	</div>
			            	<div class="post-title">				            	
						    	<h2><a href="<?=site_url('post/read/'.$row['post_year'].'/'.$row['post_month_'].'/'.$row['post_day'].'/'.$row['post_id'].'/'.seoUrl($row['post_title']))?>"><?=$row['post_title']?></a></h2>                        
						    </div>	   
                            
                            <?php if(is_superUser()):?>                         
			                <div class="post-meta">
								<a onclick="return confirm('Are you sure you want to Update this Post !')" href="<?=site_url('post/edit/'.$row['post_id'])?>" class="author">Update This News</a> <span class="separator">|</span>
								<a onclick="return confirm('Are you sure you want to Remove this Post !')" href="<?=site_url('post/remove/'.$row['post_id'])?>" class="author">Remove This News</a> <span class="separator">|</span>
							</div>
                            <?php endif;?>
			                
							<div class="post-descr">
								<?=word_limiter($row['post_content'],50,'...')?>
			                </div>
                            <div class="clear"></div>
			        	</div>
						<?php endforeach;?>
                                          
                    </div>
                    
                </div>
            </div>
            
            
            
            <!--/ 2 cols layout, 2/3+1/3-->
            <div class="divider"></div>
            
            <!--<div class="read-more-big"><a href="#">Read more stories</a></div>-->
                 
            <div class="clear"></div>
            </div>
		</article>
	</div>
    <!--/ content -->    	
</div>
<!--/ middle --> 
</div>
<!--/ container -->